package homeworke.qusetion22;

/**
 * Author：毕龙
 * Date: 2024/4/18 20:30
 */
public class BasePlusSaleEmployee extends SaleEmployee{
    private double baseSales;

    public double getBaseSales() {
        return baseSales;
    }

    public void setBaseSales(double baseSales) {
        this.baseSales = baseSales;
    }

    @Override
    public double getSalary(int month) {
        //       生日                  底薪           提成
        return super.getSalary(month)+baseSales + getRate()*getSales();
    }
}
